﻿using Goooodbye.Core.Entities;
using Goooodbye.Core.Models;
using Goooodbye.Core.Models.Query;
using Goooodbye.Core.Repositories;
using Goooodbye.Core.SharedKernel;

namespace Goooodbye.Core.Services.Impl
{
    public class DictService : GenericService<Dict, DictModel, DictQuery>, IDictService
    {
        private readonly IDictRepository dictRepository;

        public DictService(IDictRepository dictRepository) : base(dictRepository)
        {
            this.dictRepository = dictRepository;
        }

        public int RemoveAll()
        {
            return dictRepository.DeleteAll();
        }
    }
}